#include "Piece.h"
#include <iostream>
#include <string>
#include <vector>
#include <iomanip>

using namespace std;

#pragma once
class Plateau
{
private:
	Piece* PlateauDeJeu[16][16];
	int tailleX;
	int tailleY;
	int StringToInt(string a);
	void StringExplode(string str, string separator, vector<string>* results);
public:
	Plateau();
	Plateau(int tailleX, int tailleY);
	Plateau(Plateau* Source);
	~Plateau(void);
	Piece* getPiece(int X,int Y);
	void setPiece(int X,int Y,Piece* LaPiece);
	int getTailleX();
	int getTailleY();
	void setTailleX(int tailleX);
	void setTailleY(int tailleY);

	void loadFile(string);
	void loadSolution(string name);
	void ToFile(string fileName);
	void ToString();
	int Check();
	void ChargerPlateau(Plateau* Source);
};

